package cn.stylefeng.guns.modular.ry600.service.impl;


import java.util.List;
import java.util.Map;

import org.apache.commons.collections.MapUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.stylefeng.guns.modular.ry600.service.IBackOrderItemService;
import cn.stylefeng.guns.modular.ry600.service.ICommonService;
import cn.stylefeng.guns.modular.ry600.service.IOutOrderItemService;
import cn.stylefeng.guns.modular.system.dao.BackOrderItemMapper;
import cn.stylefeng.guns.modular.system.dao.CommonMapper;
import cn.stylefeng.guns.modular.system.dao.OutOrderItemMapper;
import cn.stylefeng.guns.modular.system.model.BackOrderItem;
import cn.stylefeng.guns.modular.system.model.OutOrderItem;
import cn.stylefeng.roses.core.mutidatasource.annotion.DataSource;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2018-12-06
 */
@Service
public class CommonServiceImpl  implements ICommonService {
	@Autowired
	private CommonMapper commonMapper;
	
	

	@Override
	@DataSource(name = "#dataSource")
	public List<Map<String,String>> selectByMsg(Map<String, String> msg,String dataSource) {
		return commonMapper.selectByMsg(msg);
	}



	@Override
	@DataSource(name = "#dataSource")
	public int selectCount(Map<String, String> msg, String dataSource) {
		// TODO Auto-generated method stub
		return commonMapper.selectCount(msg);
	}

}
